↳ Prolog
↳ PrologToPiTRSProof
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
row2col_in([], [], [], A, A) → row2col_out([], [], [], A, A)
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_out(Xs, Cols, Cols1, .([], A), B)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
row2col_in([], [], [], A, A) → row2col_out([], [], [], A, A)
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_out(Xs, Cols, Cols1, .([], A), B)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
TRANSPOSE_IN(A, B) → U11(A, B, transpose_aux_in(A, [], B))
TRANSPOSE_IN(A, B) → TRANSPOSE_AUX_IN(A, [], B)
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U41(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN(Xs, Cols, Cols1, .([], A), B)
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U31(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
row2col_in([], [], [], A, A) → row2col_out([], [], [], A, A)
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_out(Xs, Cols, Cols1, .([], A), B)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
TRANSPOSE_IN(A, B) → U11(A, B, transpose_aux_in(A, [], B))
TRANSPOSE_IN(A, B) → TRANSPOSE_AUX_IN(A, [], B)
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → ROW2COL_IN(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U41(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN(Xs, Cols, Cols1, .([], A), B)
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U31(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
row2col_in([], [], [], A, A) → row2col_out([], [], [], A, A)
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_out(Xs, Cols, Cols1, .([], A), B)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN(Xs, Cols, Cols1, .([], A), B)
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
row2col_in([], [], [], A, A) → row2col_out([], [], [], A, A)
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_out(Xs, Cols, Cols1, .([], A), B)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
ROW2COL_IN(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN(Xs, Cols, Cols1, .([], A), B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
ROW2COL_IN(.(X, Xs), A) → ROW2COL_IN(Xs, .([], A))
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
transpose_in(A, B) → U1(A, B, transpose_aux_in(A, [], B))
transpose_aux_in([], X, X) → transpose_aux_out([], X, X)
transpose_aux_in(.(R, Rs), X, .(C, Cs)) → U2(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
row2col_in([], [], [], A, A) → row2col_out([], [], [], A, A)
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_out(Xs, Cols, Cols1, .([], A), B)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → U3(R, Rs, X, C, Cs, transpose_aux_in(Rs, Accm, Cols1))
U3(R, Rs, X, C, Cs, transpose_aux_out(Rs, Accm, Cols1)) → transpose_aux_out(.(R, Rs), X, .(C, Cs))
U1(A, B, transpose_aux_out(A, [], B)) → transpose_out(A, B)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
TRANSPOSE_AUX_IN(.(R, Rs), X, .(C, Cs)) → U21(R, Rs, X, C, Cs, row2col_in(R, .(C, Cs), Cols1, [], Accm))
U21(R, Rs, X, C, Cs, row2col_out(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN(Rs, Accm, Cols1)
row2col_in(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_in(Xs, Cols, Cols1, .([], A), B))
U4(X, Xs, Ys, Cols, Cols1, A, B, row2col_out(Xs, Cols, Cols1, .([], A), B)) → row2col_out(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
row2col_in([], [], [], A, A) → row2col_out([], [], [], A, A)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
TRANSPOSE_AUX_IN(.(R, Rs), X) → U21(Rs, row2col_in(R, []))
U21(Rs, row2col_out(Accm)) → TRANSPOSE_AUX_IN(Rs, Accm)
row2col_in(.(X, Xs), A) → U4(row2col_in(Xs, .([], A)))
U4(row2col_out(B)) → row2col_out(B)
row2col_in([], A) → row2col_out(A)
row2col_in(x0, x1)
U4(x0)
From the DPs we obtained the following set of size-change graphs: